<!DOCTYPE html>
<!--[if lt IE 7 ]><html lang="en" class="ie6 ielt7 ielt8 ielt9"><![endif]--><!--[if IE 7 ]><html lang="en" class="ie7 ielt8 ielt9"><![endif]--><!--[if IE 8 ]><html lang="en" class="ie8 ielt9"><![endif]--><!--[if IE 9 ]><html lang="en" class="ie9"> <![endif]--><!--[if (gt IE 9)|!(IE)]><!-->
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml"><!--<![endif]-->
<head>
    <meta charset="utf-8">
    <title>Messages</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="/css/bootstrap1.min.css" rel="stylesheet">
    <link href="/css/bootstrap1-responsive.min.css" rel="stylesheet">
    <link href="/css/site.css" rel="stylesheet">
    <link href="/css/my.css" rel="stylesheet">
    <!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>
<body>
<div class="container">
    <div th:insert="~{Common/manCommon::topbar(active='mm')}"></div>
    <div class="row">
        <div th:insert="~{Common/manCommon::sidebar(active='mm')}"></div>

        <div class="span9">
            <h1>系统消息</h1>

            <legend>系统接收到的消息</legend>
            <ul class="messages">
                <li class="well" th:each="tm:${toMes}">
                    <p class="message" th:text="${tm.get('Content')}">
                    </p>
                    <span class="meta">来自<em th:text="${tm.get('from')}"></em> 消息 <em th:text="   ${tm.get('msg_status')==0?'未读   ':'已读   '}"></em>
							<a class="toggle-link" th:if="${tm.get('msg_status')==0}" th:href="@{/manSetMsgSta/} + ${tm.get('id')}"><i class="icon-ok"></i> 收件</a>
							</span>

                </li>
            </ul>

            <legend>系统发送过的消息</legend>
            <ul class="messages">
                <li class="well" th:each="fm:${fromMes}">
                    <p class="message" th:text="${fm.get('Content')}">
                    </p>
                    <span class="meta">发送至:<em th:text="${fm.get('to')}"></em></span>
                </li>
            </ul>
        </div>

    </div>
</div>

<script src="/js/jquery.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/site.js"></script>
</body>
</html>
